<div class="text-left sub_titulo"><h3>{$Tr->_('list_tickets')}</h3></div>
<div class="text-right buscador ">
{include file = 'backend/layout/search.tpl'}
</div>
<!--Agrego link a crear ticket-->
<p class="nuevo text-right"><a href="/ticket/crear/" title="{$Tr->_('add')}" class="glyphicon glyphicon-plus-sign"></a></p>

<table width="612" border="0" class="table table-hover">
  <tr>
     {if $rows==null}<th style="background-color: #000870; text-align: center;">No hay resultados para su búsqueda</th>
        {else}
            <th style="background-color: #000870;" width="170">Id</th>
            <th style="background-color: #000870;" width="180">{$Tr->_('sector')}</th>
            <th style="background-color: #000870;" width="180">{$Tr->_('event')}</th>
            <th style="background-color: #000870;" width="180">{$Tr->_('price')}</th>
            <th style="background-color: #000870;" width="248">{$Tr->_('created')}</th>
            <th style="background-color: #000870;" width="248">{$Tr->_('updated')}</th>
            <th style="background-color: #000870;" width="248" class="botones_opciones"></th>
     {/if}
  </tr>
  {foreach $rows as $row}
  <!--Creo link para actualizar categoria por id con row.id en nombre de categoria-->
  <tr>
    <td>{$row.id}</td>
    <td><a href="/sector/actualizar/id/{$row.sector_id}/">{$sectores[$row.sector_id]}</a></td>
    <td><a href="/evento/actualizar/id/{$row.evento_id}/">{$eventos[$row.evento_id]}</a></td>
    <td>{$row.precio}</td>
    <td>{$row.created|date_format:"%d/%m/%Y %I:%M:%S"}</td>
    <td>{$row.updated|date_format:"%d/%m/%Y %I:%M:%S"}</td>
    <td class="botones_opciones"><a href="/ticket/actualizar/id/{$row.id}/" title="{$Tr->_('update')} {$row.nombre}" class="glyphicon glyphicon-edit"></a> <a href="javascript:confirmar('/ticket/eliminar/id/{$row.id}/', '{$Tr->_("confirm_delete")} {$sectores[$row.sector_id]} de {$eventos[$row.evento_id]}');" class="glyphicon glyphicon-trash" title="{$Tr->_('delete')} {$row.nombre}"></a></td>
  </tr>
  {/foreach}
</table>

{include file = 'backend/layout/pagination.tpl'}